package com.invengo.library_orionstar;

public final class SpeechEvent {
    public static final int SPEECH_START=1;
    public static final int SPEECH_END = 3;
    public static final int SPEECH_PAR=2;
    public static final int SPEECH_ANSWER=4;
    public static final int SPEECH_START_SEARCH=5;

    private int event = SPEECH_START;
    public int getEvent(){
        return  event;
    }
    private String content;
    public static  SpeechEvent parResult(String value){
        return new SpeechEvent(SPEECH_PAR,value);
    };
    public static SpeechEvent start(){
        return new SpeechEvent(SPEECH_START);
    }
    public static SpeechEvent stop(){
        return new SpeechEvent(SPEECH_END);
    }
    public static SpeechEvent answer(String value){
        return new SpeechEvent(SPEECH_ANSWER,value);
    }

    public static SpeechEvent startSearch(){
        return  new SpeechEvent(SPEECH_START_SEARCH);
    }

    public String getContent() {
        return content;
    }

    private SpeechEvent(int event, String content) {
        this.event =event;
        this.content = content;
    }
    private SpeechEvent(int event){
        this.event = event;
    }
}
